home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7078 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: news.voicenet.com!news
  2. From: kobak@voicenet.com (Peter Kobak)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Is there a standard for * and & placement style?
  5. Date: 21 Feb 1996 17:53:59 GMT
  6. Organization: Voicenet - Internet Access - (215)674-9290
  7. Message-ID: <4gfm7n$1an@news.voicenet.com>
  8. References: <3128BD31.4AF8@wildfire.com>
  9. NNTP-Posting-Host: ivyland54.voicenet.com
  10. X-Newsreader: NeoLogic News for OS/2 [version: 4.2]
  11.  
  12. In message <marnoldDn27q9.Is0@netcom.com> - marnold@netcom.com (Matt Arnold) 
  13. writes:
  14. :>
  15. :>Stonewall Ballard <stoney@wildfire.com> writes:
  16. :>
  17. :>>I'm trying to find out whether there is a "standard" for the 
  18. :>>placement of * and &. A survey of C++ texts shows that most use
  19. :>
  20. :>>Form 1
  21. :>>  int&  foo;
  22. :>>  int*  foo;
  23. :>
  24. :>>while some use
  25. :>
  26. :>>Form 2
  27. :>>  int&  foo;
  28. :>>  int  *foo;
  29. :>
  30. :>There is probably no standard, just religiously held opinions.
  31. :>
  32.  
  33. After you settle this :-), how about where to put the 'const':
  34.  
  35. A const& a;
  36. A const &a;
  37. const A& a;
  38. const A &a;
  39.  
  40. ================
  41. Peter Kobak
  42. kobak@voicenet.com
  43.  
  44.  
  45.